//
//  YXBaseDownloadTool.h
//  MockProject
//
//  Created by FanYu on 30/8/2016.
//  Copyright © 2016 niuzhaowang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YXBaseDownloadTool : NSObject

// Head 
+ (void)head:(NSString *)url params:(NSDictionary *)params success:(void (^)(NSString *))sizeBytes failure:(void (^)(NSError *))failure;

// download
+ (NSURLSessionDownloadTask *)download:(NSString *)url progress:(void (^)(id))progress failure:(void (^)(NSError *))failure filePath:(void (^)(id))path;
@end
